﻿using AutoMapper;
using Qiao.Blog.Blog;

namespace Qiao.Blog
{
    public class QiaoBlogAutoMapperProfile : Profile
    {
        public QiaoBlogAutoMapperProfile()
        {
            CreateMap<Posts, PostsDto>();

            CreateMap<PostsDto, Posts>().ForMember(x => x.Id, opt => opt.Ignore());
        }
    }
}
